/***********************双屏对比   *************************/
var splitScreen = {
    openContainer: function (obj) {
        var oThis = obj;
        if (oThis.hasClass("active")) {
            oThis.removeClass("active");
            $("#SplitScreen-container").hide();
        } else {
            page.initialStatus("measure");
            $("#SplitScreen-container").show();
            oThis.parents("#switch-box").find(".bar-item").removeClass("active");
            oThis.addClass("active");
        }
    },
    closeContainer: function () {
        $("#SplitScreen-container").hide();
        $("#SplitScreen").removeClass("active");
    },
    init: function () {
        $("#SplitScreen").on("click", function () {
            splitScreen.openContainer($(this));
        });
        $("#SplitScreen-container .comment-close").on("click", function () {
            splitScreen.closeContainer();
        });
        $("#startSplit").on("click", function () {
            var oThis = $(this);
            var SplitId = oThis.siblings(".choseView").find("select").val();
            var isConstrast = oThis.siblings(".LinkageView").find("input").is(':checked');
            location.href = "../manage/splitScreen.jsp?guid=" + dataGuid + "&contrastid=" + SplitId + "&isContrast=" + isConstrast;
        });
    }
}